package day0531;

import java.util.Scanner;

public class File1 {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        System.out.println("请输入一个三位数：");
        int n=s.nextInt();
        int b=n/ (10*10)  %10;
        int h=n/ 10*1   %10;
        int g=n  %10;
        if(b*b*b + h*h*h + g*g*g  == n){
            System.out.println("是水仙花数");
        }else{
            System.out.println("不是水仙花数");
        }


    }
}
